﻿using BUGCOME.Model.Auth;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUGCOME.ServiceCore.Services.IServices
{
    /// <summary>系统权限服务接口</summary>
    public interface IPermissionService
    {
        /// <summary>获取角色权限</summary>
        /// <param name="user">用户基础信息</param>
        /// <returns>权限列表</returns>
        Task<List<string>> GetRolePermissionAsync(UserBase user);

        /// <summary>获取菜单权限</summary>
        /// <param name="user">用户基础信息</param>
        /// <returns>权限列表</returns>
       Task<List<string>> GetMenuPermissionAsync(UserBase user);
    }
}
